#ifndef REQUESTMANAGER_H
#define REQUESTMANAGER_H
//framework
#include <QUrl>
#include <QObject>
#include <QByteArray>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QNetworkAccessManager>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QTextCodec>
#include <QList>
#include <QFile>

//current


//temp
#include <QDebug>


class RequestManager: public QObject
{
    Q_OBJECT
private:
    static RequestManager* p_instance;
    RequestManager(QObject* parent = 0);  
    QString domen;
    QString locale;
    QUrl url;
    QUrl dumpUrl;
    bool checkResult = 0;
    qlonglong dumpLastModified = 0;
public:
    ~RequestManager();
    int getItemInfo(QString);   
    void checkUrl(const QString domen, const QString realm);
    void getHordeDumpAuction(QUrl _u);
    static RequestManager * getInstance() {
        if(!p_instance)
            p_instance = new RequestManager();
        return p_instance;
    }
signals:   
    void myError(const QString &);
    void checkSendUrl(QUrl );
    void checkSendBool(bool);
    void hordeDumpHere(const QList<QString> &);
    void itemData(QMap<QString,QString>);

};

#endif // REQUESTMANAGER_H

